package test02collection;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @author xhw
 */
@Setter
@Getter
@AllArgsConstructor
public class Dog {
    //练习5的狗类

    private String type;
    private String name;

    public void eat() {
        System.out.println("狗喜欢啃骨头");
    }

    public void run() {
        System.out.println("狗喜欢乱跑");
    }

    @Override
    public String toString() {
        return "Dog [type=" + type + ",neme=" + name + "]";
    }
}
